Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(eventindexer): indexing nft metadata #17538

Merged
merged 38 commits into from
Jul 2, 2024
Merged

Conversation

k-kaddal
Copy link
Contributor

@k-kaddal k-kaddal commented Jun 9, 2024

Indexing NFT Metadata

This PR us index NFT metadata by fetching and storing it in the db when an NFT transfer. Implemented an endpoint to retrieve the stored NFT metadata by contract address and token ID.

GET /nftMetadata?contractAddress={contract_address}f&tokenID={token_id}

Key Changes:

  1. Database: Added migration to create the nft_metadata table.
  2. Repository:
  • SaveNFTMetadata: Saves NFT metadata.
  • GetNFTMetadata: Retrieves NFT metadata by contract address and token ID.
  • FindByContractAddress: Paginates NFT metadata by contract address.
  1. Fetching Metadata: Implements functions to fetch and parse metadata for ERC-1155 and ERC-721 tokens.
  2. API: Added an endpoint to retrieve NFT metadata by contract address and token ID.
  3. Indexing Integration: Integrated metadata indexing in the index_nft_transfer function.

@k-kaddal k-kaddal requested a review from cyberhorsey June 9, 2024 21:18
@k-kaddal k-kaddal self-assigned this Jun 9, 2024
@k-kaddal k-kaddal changed the title Feat/event indexer nft feat(eventindexer): indexing nft metadata Jun 9, 2024
@k-kaddal k-kaddal force-pushed the feat/event-indexer-nft branch 7 times, most recently from 5e79f27 to 2207f45 Compare June 13, 2024 18:28
@k-kaddal k-kaddal marked this pull request as ready for review June 13, 2024 19:11
@k-kaddal k-kaddal requested review from xiaodino and RogerLamTd June 13, 2024 19:12
@k-kaddal k-kaddal force-pushed the feat/event-indexer-nft branch from 5014448 to dc63d1e Compare June 14, 2024 10:11
@k-kaddal k-kaddal force-pushed the feat/event-indexer-nft branch from 39e1ebc to 445acdc Compare June 17, 2024 19:53
Copy link

feat(eventindexer): indexing nft metadata

Generated at commit: 6d569819365141847a423624bb4d3e79d4831707

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
2
2
0
8
42
54
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

@dantaik
Copy link
Contributor

dantaik commented Jun 28, 2024

@k-kaddal this PR is taking very long. Will you get it ready or closed?

@k-kaddal k-kaddal added this pull request to the merge queue Jul 2, 2024
Merged via the queue into main with commit d0e25ba Jul 2, 2024
7 checks passed
@k-kaddal k-kaddal deleted the feat/event-indexer-nft branch July 2, 2024 10:53
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.

4 participants