MarketplaceGetterFacet

getAavegotchiListing

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

Parameters

NameTypeDescription

_listingId

uint256

The identifier of the listing to query

Return Values

NameTypeDescription

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

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

Parameters

NameTypeDescription

_listingId

uint256

The identifier of the ERC721 listing to query

Return Values

NameTypeDescription

listing_

struct ERC721Listing

A struct containing certain details about the ERC721 listing like timeCreated etc

getERC721ListingFromToken

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

Parameters

NameTypeDescription

_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

NameTypeDescription

listing_

struct ERC721Listing

A struct containing certain details about the ERC721 listing associated with an NFT of contract address _erc721TokenAddress and identifier _erc721TokenId

getOwnerERC721Listings

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

Parameters

NameTypeDescription

_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

NameTypeDescription

listings_

struct ERC721Listing[]

An array of structs, each struct containing details about each listing being returned

AavegotchiListing

struct AavegotchiListing {
  struct ERC721Listing listing_;
  struct AavegotchiInfo aavegotchiInfo_;
}

getOwnerAavegotchiListings

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

Parameters

NameTypeDescription

_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

NameTypeDescription

listings_

struct MarketplaceGetterFacet.AavegotchiListing[]

An array of structs, each struct containing details about each listing being returned

getERC721Listings

function getERC721Listings(uint256 _category, string _sort, uint256 _length) external view returns (struct ERC721Listing[] listings_)

Query a certain amount of ERC721 listings

Parameters

NameTypeDescription

_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

NameTypeDescription

listings_

struct ERC721Listing[]

An array of structs, each struct containing details about each listing being returned

getAavegotchiListings

function getAavegotchiListings(uint256 _category, string _sort, uint256 _length) external view returns (struct MarketplaceGetterFacet.AavegotchiListing[] listings_)

Query a certain amount of aavegotchi listings

Parameters

NameTypeDescription

_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

NameTypeDescription

listings_

struct MarketplaceGetterFacet.AavegotchiListing[]

An array of structs, each struct containing details about each listing being returned

getListingFeeInWei

function getListingFeeInWei() external view returns (uint256)

Get the standard listing fee in wei

Return Values

NameTypeDescription

[0]

uint256

The listing fee(Fee for listing NFTs on the baazaar)

getERC1155Listing

function getERC1155Listing(uint256 _listingId) external view returns (struct ERC1155Listing listing_)

Query the details of an ERC1155 listing

Parameters

NameTypeDescription

_listingId

uint256

The identifier of the listing to be queried

Return Values

NameTypeDescription

listing_

struct ERC1155Listing

A struct containing details of the ERC1155 listing being queried

getERC1155ListingFromToken

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

Parameters

NameTypeDescription

_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

NameTypeDescription

listing_

struct ERC1155Listing

A struct containing certain details about the ERC1155 listing associated with an NFT of contract address _erc721TokenAddress and identifier _erc721TokenId

getOwnerERC1155Listings

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

Parameters

NameTypeDescription

_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

NameTypeDescription

listings_

struct ERC1155Listing[]

An array of structs, each struct containing details about each listing being returned

getERC1155Listings

function getERC1155Listings(uint256 _category, string _sort, uint256 _length) external view returns (struct ERC1155Listing[] listings_)

Query a certain amount of ERC1155 listings

Parameters

NameTypeDescription

_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

NameTypeDescription

listings_

struct ERC1155Listing[]

An array of structs, each struct containing details about each listing being returned