Skip to content

Commit

Permalink
feat: include token count in collection metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
jackmellis committed Dec 13, 2023
1 parent 77a6c66 commit 0656ef9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/collections/fetchCollection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ const fetchCollection = async ({
twitterUsername: x.twitterUsername,
standard: x.contractKind.toUpperCase() as 'ERC721',
floorPrice: BigInt(x.floorAsk?.price?.amount?.raw ?? '0'),
tokenCount: Number(x.tokenCount),
};
})[0];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export const makeFetchUserCollectionsReservoir = ({
twitterUsername: x.collection.twitterUsername,
standard: x.collection.contractKind.toUpperCase() as 'ERC721',
floorPrice: BigInt(x.collection.floorAsk?.price?.amount?.raw ?? '0'),
tokenCount: Number(x.collection.tokenCount),
};
});

Expand Down
1 change: 1 addition & 0 deletions packages/types/src/collections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ export type Collection = {
twitterUsername: string;
floorPrice: bigint;
standard: 'ERC721' | 'ERC1155';
tokenCount: number;
};

0 comments on commit 0656ef9

Please sign in to comment.