Skip to content

Conversation

@aditya1702
Copy link
Contributor

@aditya1702 aditya1702 commented Nov 21, 2025

What

  • Add a contract metadata service that simulates and fetches the name, symbol and decimals for contract tokens
  • Add relevant unit tests
  • Call this new service during initial checkpoint population and at the end of ingestion loop (if there are new contract tokens to ingest). However, we dont stall ingestion on simulation errors and instead just fail gracefully.

Why

This helps keep our contract tokens db updated with the code, issuer, name, symbol and decimals info for unique contract tokens and we dont have to simulate during account balance fetch.

Known limitations

N/A

Issue that this PR addresses

Closes #392

@aditya1702 aditya1702 marked this pull request as ready for review November 24, 2025 16:06
@aditya1702 aditya1702 changed the title Add contract metadata service Add contract metadata fetching service Nov 24, 2025
@aditya1702 aditya1702 requested a review from a team November 24, 2025 16:24
@aditya1702 aditya1702 merged commit 761ee0b into main Nov 24, 2025
9 checks passed
@aditya1702 aditya1702 deleted the contract-tokens-update branch November 24, 2025 18:45
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.

Detect new contract tokens during ingestion and ingest into db

3 participants