MarketplaceGetterFacet
getAavegotchiListing
Get an aavegotchi listing details through an identifier
Will throw if the listing does not exist
Parameters
Name | Type | Description |
---|---|---|
_listingId | uint256 | The identifier of the listing to query |
Return Values
Name | Type | Description |
---|---|---|
listing_ | struct ERC721Listing | A struct containing certain details about the listing like timeCreated etc |
aavegotchiInfo_ | struct AavegotchiInfo | A struct containing details about the aavegotchi |
getERC721Listing
Get an ERC721 listing details through an identifier
Will throw if the listing does not exist
Parameters
Name | Type | Description |
---|---|---|
_listingId | uint256 | The identifier of the ERC721 listing to query |
Return Values
Name | Type | Description |
---|---|---|
listing_ | struct ERC721Listing | A struct containing certain details about the ERC721 listing like timeCreated etc |
getERC721ListingFromToken
Get an ERC721 listing details through an NFT
Will throw if the listing does not exist
Parameters
Name | Type | Description |
---|---|---|
_erc721TokenAddress | address | The address of the NFT associated with the listing |
_erc721TokenId | uint256 | The identifier of the NFT associated with the listing |
_owner | address | The owner of the NFT associated with the listing |
Return Values
Name | Type | Description |
---|---|---|
listing_ | struct ERC721Listing | A struct containing certain details about the ERC721 listing associated with an NFT of contract address |
getOwnerERC721Listings
Query a certain amount of ERC721 listings created by an address based on their category and sortings
Parameters
Name | Type | Description |
---|---|---|
_owner | address | Creator of the listings to query |
_category | uint256 | Category of listings to query // 0 == portal, 1 == vrf pending, 1 == open portal, 2 == Aavegotchi. |
_sort | string | Sortings of listings to query // "listed" or "purchased" |
_length | uint256 | How many ERC721 listings to return |
Return Values
Name | Type | Description |
---|---|---|
listings_ | struct ERC721Listing[] | An array of structs, each struct containing details about each listing being returned |
AavegotchiListing
getOwnerAavegotchiListings
Query a certain amount of aavegotchi listings created by an address based on their category and sortings
Parameters
Name | Type | Description |
---|---|---|
_owner | address | Creator of the listings to query |
_category | uint256 | Category of listings to query // 0 == portal, 1 == vrf pending, 1 == open portal, 2 == Aavegotchi. |
_sort | string | Sortings of listings to query // "listed" or "purchased" |
_length | uint256 | How many aavegotchi listings to return |
Return Values
Name | Type | Description |
---|---|---|
listings_ | struct MarketplaceGetterFacet.AavegotchiListing[] | An array of structs, each struct containing details about each listing being returned |
getERC721Listings
Query a certain amount of ERC721 listings
Parameters
Name | Type | Description |
---|---|---|
_category | uint256 | Category of listings to query // 0 == portal, 1 == vrf pending, 1 == open portal, 2 == Aavegotchi. |
_sort | string | Sortings of listings to query // "listed" or "purchased" |
_length | uint256 | How many listings to return |
Return Values
Name | Type | Description |
---|---|---|
listings_ | struct ERC721Listing[] | An array of structs, each struct containing details about each listing being returned |
getAavegotchiListings
Query a certain amount of aavegotchi listings
Parameters
Name | Type | Description |
---|---|---|
_category | uint256 | Category of listings to query // 0 == portal, 1 == vrf pending, 1 == open portal, 2 == Aavegotchi. |
_sort | string | Sortings of listings to query |
_length | uint256 | How many listings to return |
Return Values
Name | Type | Description |
---|---|---|
listings_ | struct MarketplaceGetterFacet.AavegotchiListing[] | An array of structs, each struct containing details about each listing being returned |
getListingFeeInWei
Get the standard listing fee in wei
Return Values
Name | Type | Description |
---|---|---|
[0] | uint256 | The listing fee(Fee for listing NFTs on the baazaar) |
getERC1155Listing
Query the details of an ERC1155 listing
Parameters
Name | Type | Description |
---|---|---|
_listingId | uint256 | The identifier of the listing to be queried |
Return Values
Name | Type | Description |
---|---|---|
listing_ | struct ERC1155Listing | A struct containing details of the ERC1155 listing being queried |
getERC1155ListingFromToken
Get an ERC721 listing details through an NFT
Will throw if the listing does not exist
Parameters
Name | Type | Description |
---|---|---|
_erc1155TokenAddress | address | The address of the NFT associated with the listing |
_erc1155TypeId | uint256 | The identifier of the NFT associated with the listing |
_owner | address | The owner of the NFT associated with the listing |
Return Values
Name | Type | Description |
---|---|---|
listing_ | struct ERC1155Listing | A struct containing certain details about the ERC1155 listing associated with an NFT of contract address |
getOwnerERC1155Listings
Query a certain amount of ERC1155 listings created by an address based on their category and sortings
Parameters
Name | Type | Description |
---|---|---|
_owner | address | Creator of the listings to query |
_category | uint256 | Category of listings to query // 0 is wearable, 1 is badge, 2 is consumable, 3 is tickets |
_sort | string | Sortings of listings to query // "listed" or "purchased" |
_length | uint256 | How many ERC1155 listings to return |
Return Values
Name | Type | Description |
---|---|---|
listings_ | struct ERC1155Listing[] | An array of structs, each struct containing details about each listing being returned |
getERC1155Listings
Query a certain amount of ERC1155 listings
Parameters
Name | Type | Description |
---|---|---|
_category | uint256 | Category of listings to query // 0 is wearable, 1 is badge, 2 is consumable, 3 is tickets |
_sort | string | Sortings of listings to query // "listed" or "purchased" |
_length | uint256 | How many listings to return |
Return Values
Name | Type | Description |
---|---|---|
listings_ | struct ERC1155Listing[] | An array of structs, each struct containing details about each listing being returned |