Skip to content

Conversation

@williamchong
Copy link
Member

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for token_id from the classes by ownership API. The API now returns token IDs along with NFT class information, and the bookshelf store is updated to collect and deduplicate these token IDs.

Changes:

  • Added NFTClassWithTokenId interface that extends NFTClass with a token_id field
  • Updated FetchNFTClassesByOwnerWalletAddressResponseData to use the new interface
  • Modified bookshelf store logic to collect token IDs when provided by the API, with proper duplicate checking

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
shared/utils/indexer.ts Adds new NFTClassWithTokenId interface and updates response type to include token_id
stores/bookshelf.ts Updates token ID collection logic to handle optional token_id from API with duplicate prevention

@williamchong williamchong merged commit be803e6 into likecoin:develop Feb 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants