MarketplaceGetterFacet
function getAavegotchiListing(uint256 _listingId) external view returns (struct ERC721Listing listing_, struct AavegotchiInfo aavegotchiInfo_)
Get an aavegotchi listing details through an identifier
Will throw if the listing does not exist
Name | Type | Description |
---|---|---|
_listingId | uint256 | The identifier of the listing to query |
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 |
function getERC721Listing(uint256 _listingId) external view returns (struct ERC721Listing listing_)
Get an ERC721 listing details through an identifier
Will throw if the listing does not exist
Name | Type | Description |
---|---|---|
_listingId | uint256 | The identifier of the ERC721 listing to query |
Name | Type | Description |
---|---|---|
listing_ | struct ERC721Listing | A struct containing certain details about the ERC721 listing like timeCreated etc |
function getERC721ListingFromToken(address _erc721TokenAddress, uint256 _erc721TokenId, address _owner) external view returns (struct ERC721Listing listing_)
Get an ERC721 listing details through an NFT
Will throw if the listing does not exist
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 |
Name | Type | Description |
---|---|---|
listing_ | struct ERC721Listing | A struct containing certain details about the ERC721 listing associated with an NFT of contract address _erc721TokenAddress and identifier _erc721TokenId |
function getOwnerERC721Listings(address _owner, uint256 _category, string _sort, uint256 _length) external view returns (struct ERC721Listing[] listings_)
Query a certain amount of ERC721 listings created by an address based on their category and sortings
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 |
Name | Type | Description |
---|---|---|
listings_ | struct ERC721Listing[] | An array of structs, each struct containing details about each listing being returned |
struct AavegotchiListing {
struct ERC721Listing listing_;
struct AavegotchiInfo aavegotchiInfo_;
}
function getOwnerAavegotchiListings(address _owner, uint256 _category, string _sort, uint256 _length) external view returns (struct MarketplaceGetterFacet.AavegotchiListing[] listings_)
Query a certain amount of aavegotchi listings created by an address based on their category and sortings
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 |
Name | Type | Description |
---|---|---|
listings_ | struct MarketplaceGetterFacet.AavegotchiListing[] | An array of structs, each struct containing details about each listing being returned |
function getERC721Listings(uint256 _category, string _sort, uint256 _length) external view returns (struct ERC721Listing[] listings_)
Query a certain amount of ERC721 listings
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 |
Name | Type | Description |
---|---|---|
listings_ | struct ERC721Listing[] | An array of structs, each struct containing details about each listing being returned |
function getAavegotchiListings(uint256 _category, string _sort, uint256 _length) external view returns (struct MarketplaceGetterFacet.AavegotchiListing[] listings_)
Query a certain amount of aavegotchi listings
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 |
Name | Type | Description |
---|---|---|
listings_ | struct MarketplaceGetterFacet.AavegotchiListing[] | An array of structs, each struct containing details about each listing being returned |
function getListingFeeInWei() external view returns (uint256)
Get the standard listing fee in wei
Name | Type | Description |
---|---|---|
[0] | uint256 | The listing fee(Fee for listing NFTs on the baazaar) |
function getERC1155Listing(uint256 _listingId) external view returns (struct ERC1155Listing listing_)
Query the details of an ERC1155 listing
Name | Type | Description |
---|---|---|
_listingId | uint256 | The identifier of the listing to be queried |
Name | Type | Description |
---|---|---|
listing_ | struct ERC1155Listing | A struct containing details of the ERC1155 listing being queried |
function getERC1155ListingFromToken(address _erc1155TokenAddress, uint256 _erc1155TypeId, address _owner) external view returns (struct ERC1155Listing listing_)
Get an ERC721 listing details through an NFT
Will throw if the listing does not exist
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 |
Name | Type | Description |
---|---|---|
listing_ | struct ERC1155Listing | A struct containing certain details about the ERC1155 listing associated with an NFT of contract address _erc721TokenAddress and identifier _erc721TokenId |
function getOwnerERC1155Listings(address _owner, uint256 _category, string _sort, uint256 _length) external view returns (struct ERC1155Listing[] listings_)
Query a certain amount of ERC1155 listings created by an address based on their category and sortings
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 |
Name | Type | Description |
---|---|---|
listings_ | struct ERC1155Listing[] | An array of structs, each struct containing details about each listing being returned |
function getERC1155Listings(uint256 _category, string _sort, uint256 _length) external view returns (struct ERC1155Listing[] listings_)
Query a certain amount of ERC1155 listings
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 |
Name | Type | Description |
---|---|---|
listings_ | struct ERC1155Listing[] | An array of structs, each struct containing details about each listing being returned |