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

Create new index for tracking Asset metadata #2445

Open
wants to merge 289 commits into
base: master
Choose a base branch
from

Conversation

maschad
Copy link
Member

@maschad maschad commented Nov 20, 2024

Note:
Please merge #2463 first


Linked Issues/PRs

Description

This introduces a new GraphQL endpoint that returns info about an asset. Similarly to other indexes, the asset metadata index is only available when the client was started with no database and was able to sync from scratch. If the index is not available, this endpoint will return an error:

{
  "data": null,
  "errors": [
    {
      "message": "Asset metadata index is not available",
      "locations": [...],
    }
  ]
}

The off-chain worker indexes Mint and Burn events to store this metadata about an AssetId.

Checklist

  • New behavior is reflected in tests

Before requesting review

  • I have reviewed the code myself

After merging, notify other teams

[Add or remove entries as needed]

@rafal-ch rafal-ch self-assigned this Jan 8, 2025
@rafal-ch rafal-ch marked this pull request as ready for review January 9, 2025 11:06
@AurelienFT AurelienFT changed the base branch from master to rafal_2391_coins_to_spend_cache_part_2 January 10, 2025 12:07
xgreenx
xgreenx previously approved these changes Jan 10, 2025
xgreenx and others added 3 commits January 13, 2025 12:12
PR implemented one of follow up things from
#2463.

Closes #2498

### Before requesting review
- [x] I have reviewed the code myself
Base automatically changed from rafal_2391_coins_to_spend_cache_part_2 to master January 13, 2025 15:20
@rafal-ch rafal-ch dismissed xgreenx’s stale review January 13, 2025 15:20

The base branch was changed.

Copy link
Contributor

@AurelienFT AurelienFT left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add indexation AssetId -> (ContractId, SubId)
4 participants