Skip to content

Conversation

@YaroShkvorets
Copy link
Member

This pull request refactors the database configuration for the Token API to allow the token database to be split into separate databases for balances, transfers, and metadata. It updates environment variables, configuration, and all relevant API routes to use the new structure, improving modularity and future extensibility. Additionally, naming is standardized across code and documentation.

Database Configuration Refactor:

  • Split the single tokenDatabases configuration into three separate configurations: balancesDatabases, transfersDatabases, and metadataDatabases throughout the codebase, including updates to the config schema, CLI options, and environment variables.

  • Updated all EVM balance and holder-related API routes to use the new balancesDatabases and metadataDatabases configs, ensuring correct database usage for each route.

Other Database Naming and Usage Updates:

  • Standardized DEX database naming from uniswapDatabases to dexDatabases in configuration, environment, and EVM DEX route.

…e balances, transfers, and metadata databases

Split `DBS_TOKEN` into three separate database configurations (`DBS_BALANCES`, `DBS_TRANSFERS`, `DBS_METADATA`) and rename `DBS_UNISWAP` to `DBS_DEX`. Update all route handlers and configuration logic to use the new database references. Update environment variable examples and documentation to reflect the new database structure.
@changeset-bot
Copy link

changeset-bot bot commented Jan 14, 2026

🦋 Changeset detected

Latest commit: a632722

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
token-api Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

@DenisCarriere DenisCarriere left a comment

Choose a reason for hiding this comment

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

Looks good 👍 this will be a big help moving forward

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.

3 participants