From 045abe36c118999b0899bc363235163d9ad8f37c Mon Sep 17 00:00:00 2001 From: Juanma Hidalgo Date: Thu, 1 Jun 2023 17:38:35 +0200 Subject: [PATCH] feat: add collections graph to collections component merger --- src/index.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index bb6a23b..1d3c13b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -681,12 +681,21 @@ async function initComponents(): Promise { chainId: collectionsChainId, }) + // collections eth + const ethereumCollections = createCollectionsComponent({ + subgraph: collectionsEthereumSubgraph, + network: Network.ETHEREUM, + chainId: marketplaceChainId, + }) + const collections = createMergerComponent< Collection, CollectionFilters, CollectionSortBy >({ - sources: [createCollectionsSource(collectionsCollections)], + sources: [collectionsCollections, ethereumCollections].map( + createCollectionsSource + ), defaultSortBy: COLLECTION_DEFAULT_SORT_BY, directions: { [CollectionSortBy.NAME]: SortDirection.ASC,